package com.neiquan.backstage.pub.bsc.dao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.neiquan.backstage.core.PO;

/**
 * 工位
 * @author linjiang
 *
 */
@Entity
@Table
public class Station extends PO{
	public static final Integer apply_change_station=5;
	public static final Integer apply_station=4;
	public static final Integer status_free = 0;
	public static final Integer status_lease = 1;
	public static final Integer status_lock = 2;
	public static final Integer status_occupy = 3;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(unique = true, nullable = false)
	private Integer stationId;		//工位id
	private String 	name;			//工位名字
	private Integer totalLines;			//总列
	private Integer totalRows;			//总行
	private Integer leaseId;		//租房id
	private Integer myLines;		//我的列
	private Integer myRows; 		//我的行
	private double 	rental;			//租金标准
	private Integer state;			//表示0空闲，1出租，2锁定状态,3被占用
	private Integer memberId;		//区号 外键
	private Integer applyType;		//申请分类
	
//	序列化和设定主键
	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return stationId;
	}

	public Integer getStationId() {
		return stationId;
	}

	public void setStationId(Integer stationId) {
		this.stationId = stationId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public Integer getLeaseId() {
		return leaseId;
	}

	public void setLeaseId(Integer leaseId) {
		this.leaseId = leaseId;
	}

	
	public Integer getTotalLines() {
		return totalLines;
	}

	public void setTotalLines(Integer totalLines) {
		this.totalLines = totalLines;
	}

	public Integer getTotalRows() {
		return totalRows;
	}

	public void setTotalRows(Integer totalRows) {
		this.totalRows = totalRows;
	}

	public Integer getMyLines() {
		return myLines;
	}

	public void setMyLines(Integer myLines) {
		this.myLines = myLines;
	}

	public Integer getMyRows() {
		return myRows;
	}

	public void setMyRows(Integer myRows) {
		this.myRows = myRows;
	}

	public double getRental() {
		return rental;
	}

	public void setRental(double rental) {
		this.rental = rental;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	public Integer getApplyType() {
		return applyType;
	}

	public void setApplyType(Integer applyType) {
		this.applyType = applyType;
	}
	
}
